
import {AxiosRequestConfig} from 'axios'

interface AxiosConfig extends AxiosRequestConfig{
    status:Object
}
const _config:AxiosConfig ={
    baseURL:import.meta.env.BASE_URL,
    timeout:10000,
    headers:{
        get: {
            'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'
        },
        post: {
            'Content-Type': 'application/json;charset=utf-8'
        }
    },
    status:{
        '400':'请求错误(400)',
        '500' :'服务器错误(500)',
        'default':'未知错误'
    }

}

export default _config